package cn.com.yx.ms.persistence;

import cn.com.yx.ms.domain.dbmodel.CmdRecord;
import cn.com.yx.ms.domain.dbmodel.CommandCount;
import cn.com.yx.ms.domain.sta.OnOfflineCountModel;
import cn.com.yx.ms.domain.sta.TrafficCountModel;
import io.swagger.models.auth.In;

import java.util.List;

public interface CmdRecordMapper {
    int deleteByPrimaryKey(String guid);

    int insert(CmdRecord record);

    int insertSelective(CmdRecord record);

    CmdRecord selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(CmdRecord record);

    int updateByPrimaryKey(CmdRecord record);

    int insertSelectiveList(List<CmdRecord> list);

    List<CommandCount> selectCommandCount(String cmdtype);

    List<CommandCount> selectCommand3003Count();

    List<Integer> selectCommand3TotalDevice();

    List<OnOfflineCountModel> selectCommandOnLineOffLineDevice();

    List<TrafficCountModel> selectCommandTraffic(String nettype);

    List<CommandCount> selectCommand5003Count();
}